<%@page import="es.uned.hoomgle.core.dtos.ParameterDto"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

<html>
<head>
 <META http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
</head>
 <style type="text/css">
   @import url(style.css);
 </style>
<body>
   <font color="green"><s:actionmessage/></font>
  <br /><br />
   
  <div class="content" align="center">
 	 <s:form action="saveParameters.action"  method="post">
      <display:table name="parameters" cellpadding="5px"
                     sort="external" defaultsort="1" pagesize="10" id="element" 
                     requestURI="setParameters.action"
                     decorator="es.uned.hoomgle.web.decorators.HomeTableDecorator">
      <display:column property="name" title="NOMBRE" />   
      <display:column  title="PERMISO" >           
      <input type="checkbox" name="isActiveArray" value="<%=((ParameterDto)element).getId() %>"
      	<% 
      		if(((ParameterDto)element).getIsActive()){      			      			
      			%>		
      		checked="checked"
      	<%
      		}
      	%>
      	 />   	
      </display:column>    
      </display:table>	    
	     <s:submit type="button" label="Guardar" method="execute" align="center" ></s:submit>
	     <s:actionerror/>
      </s:form> 
  </div>
</body>
</html>


